import { createSlice } from '@reduxjs/toolkit'

export const conts = createSlice({
  name: 'cont',
  initialState:{
        start:'北京',
        end:'三亚',
        names:2025-3-25,
    },
  
  
        
  reducers: {
    setstart:(state,action)=>{
        state.start=action.payload
    },
    setend:(state,action)=>{
        state.end=action.payload
    },
    setnames:(state,action)=>{
        state.names=action.payload
    }
    
  },
})


export const {  setstart,setend,setnames} = conts.actions